<?php

use backend\modules\Logistics\modules\Region\widgets\EntityDetail;
use yii\widgets\Pjax;

/* @var $this yii\web\View */
/* @var $model common\models\c2\entity\Region */

if ($model->isNewRecord) {
    $this->title = Yii::t('app.c2', '{actionTips} {modelClass}: ', ['actionTips' => Yii::t('app.c2', 'Create'), 'modelClass' => Yii::t('app.c2', 'Region'),]);
    $this->params['breadcrumbs'][] = ['label' => Yii::t('app.c2', 'Regions'), 'url' => ['index']];
    $this->params['breadcrumbs'][] = $this->title;
} else {
    $this->title = Yii::t('app.c2', '{actionTips} {modelClass}: ', ['actionTips' => Yii::t('app.c2', 'Update'), 'modelClass' => Yii::t('app.c2', 'Region'),]) . ' ' . $model->id;
    $this->params['breadcrumbs'][] = ['label' => Yii::t('app.c2', 'Regions'), 'url' => ['index']];
    $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
    $this->params['breadcrumbs'][] = Yii::t('app.c2', 'Update');
}
?>

<?php Pjax::begin(['id' => 'region-pjax', 'enablePushState' => false]) ?>

<div class="modal-header">
    <i class="fa fa-th"></i> <?= $this->title ?>
</div>

<div class="modal-body">
    <?php
    echo EntityDetail::widget([
        'model' => $model,
    ]);
    ?>
</div>

<div class="modal-footer">
</div>

<?php Pjax::end() ?>

